<% form_tag '/answers' do %>
  

<h1><%=h @answer.question.body %><br/></h1>

  <% @answer.question.choices.each_with_index do |choice, i| %>

    <p>

    <%= 'abcd'[i,1] %><input id="answer_values" name="answer[values][]" type="checkbox" value="<%= i %>" />

    <%=h choice %>
    </p>

  <% end %>

  
  <input type= "submit" name ="submit">
  <input type="hidden" name="rn" value="<%= @round_number %>">
  <input type="hidden" name="answer[question_id]" value="<%= @answer.question_id %>">
  <% # Consider modelling answer as a nested resource under question and removing this hidden field. Or is there a more document-oriented way? %>
<% end %>

